package com.atstudying.mall.member.service;

import com.atstudying.common.utils.PageUtils;
import com.atstudying.mall.member.entity.MemberEntity;
import com.atstudying.mall.member.exception.PhoneExistException;
import com.atstudying.mall.member.exception.UsernameExistException;
import com.atstudying.mall.member.vo.MemberLoginVo;
import com.atstudying.mall.member.vo.MemberRegistVo;
import com.atstudying.mall.member.vo.SocicalUser;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * 会员
 *
 * @author zlj
 * @email 2908434305@qq.com
 * @date 2020-10-04 22:34:03
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo vo);

    void checkPhoneUnique(String phone) throws PhoneExistException;

    void checkUsernameUnique(String userName)throws UsernameExistException;

    MemberEntity login(MemberLoginVo memberLoginVo);

    MemberEntity loginOauth2(SocicalUser socicalUser) throws Exception;
}

